<?php
/**
 * Created by PhpStorm.
 * User: 13790
 * Date: 2018/3/22
 * Time: 11:05
 */

namespace app\common\validate;


use think\Validate;

class Role extends Validate
{
    protected $reul=[
      'role_name'=>'require',
       'orders'=>'require',
    ];
    protected $message=[
       'role_name.require'=>'角色名不能为空',
       'orders.require'=>'排序不能为空'
    ];
    protected $scent=[
        'add'=>['orle_name','orders'],
        'edit'=>['orle_name','orders'],
    ];

}